﻿using System.Windows;

namespace XmlStudio.Dialogs {
    /// <summary>
    /// Interaction logic for RemoveNodeDialog.xaml
    /// </summary>
// ReSharper disable RedundantExtendsListEntry
    public partial class RemoveNodeDialog : Window {
// ReSharper restore RedundantExtendsListEntry
        public bool Canceled { get; private set; }

        public RemoveNodeDialog() {
            InitializeComponent();
        }

        protected void YesClicked(object sender, RoutedEventArgs e) {
            this.DialogResult = true;
            this.Close();
        }

        protected void NoClicked(object sender, RoutedEventArgs e) {
            this.DialogResult = false;
            this.Close();
        }

        protected void CancelClicked(object sender, RoutedEventArgs e) {
            this.Canceled = true;
            this.DialogResult = null;
            this.Close();
        }
    }
}
